home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-2.5.more.help < prev    next >
Internet Message Format  |  1994-12-22  |  4KB

  1. From khc@eece.ksu.edu Thu Dec 22 11:16:07 1994
  2. Date: Thu, 22 Dec 94 10:15 CST
  3. From: khc@eece.ksu.edu (Kenneth H. Carpenter)
  4. To: kb@cs.umb.edu
  5. Subject: bug report -- web2c.kpathsea-2.5.help
  6.  
  7. I attempted to send this to the address in the file itself
  8. but it bounced:
  9.  
  10. Return-Path: <MAILER-DAEMON>
  11. Date: Thu, 22 Dec 94 11:37 AEST
  12. From: <MAILER-DAEMON@sydgate.apana.org.au>
  13. To: khc@eece.ksu.edu
  14. Subject: mail failed, returning to sender
  15. Reference: <m0rKcK2-0001P1C@sydgate.apana.org.au>
  16.  
  17. |------------------------- Message log follows: -------------------------|
  18.  no valid recipients were found for this message
  19. |------------------------- Failed addresses follow: ---------------------|
  20.  <scotts@sydgate.apana.org.au> ... unknown user
  21. |------------------------- Message text follows: ------------------------|
  22. Received: from cs.umb.edu by sydgate.apana.org.au with smtp
  23.     (Smail3.1.28.1 #3) id m0rKcK2-0001P1C; Thu, 22 Dec 94 11:28 AEST
  24. Received: from wiz.eece.ksu.edu by cs.umb.edu with SMTP id AA20542
  25.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 21 Dec 1994 18:33:20 -0500
  26. Received: from elmo.eece.ksu.edu by wiz.eece.ksu.edu with smtp
  27.     (Smail3.1.28.1 #7) id m0rKaX7-000A8wC; Wed, 21 Dec 94 17:33 CST
  28. Received: by elmo.eece.ksu.edu (Smail3.1.28.1 #7)
  29.     id m0rKaVz-0001NaC; Wed, 21 Dec 94 17:32 CST
  30. Message-Id: <m0rKaVz-0001NaC@elmo.eece.ksu.edu>
  31. Date: Wed, 21 Dec 94 17:32 CST
  32. From: khc@eece.ksu.edu (Kenneth H. Carpenter)
  33. To: tex-k@cs.umb.edu
  34. Subject: bug in the patch in web2c.kpathsea-2.5.help
  35.  
  36. Today I tried to build tex from sources from the ctan archives
  37. that are the most recent.  I followed the directions in the
  38. file web2c.kpathsea-2.5.help to incorporate kpathsea-2.5 in tex.
  39. All was well except for a bug in the patch provided in web2c.kpathsea-2.5.help.
  40. I have found a work-around for it, and just in case no one else has
  41. hit is yet, I am reporting it here:
  42.  
  43. The patch to the file web2c/configure in web2c.kpathsea-2.5.help
  44. contains a bug which causes compilation to fail for tex/mf on a
  45. Sun Sparc1 running SunOS4.1.3 using gcc2.6.1 and flex 2.4.7.
  46. The error is due to the configure in the top level setting the 
  47. pointer type for the lex yytext, then in the configure in web2c
  48. the test is skipped, so that the LEX_OUTPUT_ROOT symbol is null.
  49. This causes the makefile produced to not have a file name for the
  50. output from (f)lex.  The section in error is from line 2810 to line
  51. 2830 in web2c.kpathsea-2.5.help:
  52. ------------------------------------------------------------
  53. ! echo $ac_n "checking for yytext declaration""... $ac_c" 1>&4
  54. ! if eval "test \"`echo '${'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  55. !   echo $ac_n "(cached) $ac_c" 1>&4
  56. ! else
  57. !   # POSIX says lex can declare yytext either as a pointer or an array; the
  58. ! # default is implementation-dependent. Figure out which it is, since
  59. ! # not all implementations provide the %pointer and %array declarations.
  60. ! #
  61. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  62. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  63. ! ac_cv_prog_lex_yytext_pointer=no
  64.     echo '%%
  65. ! %%' | $LEX
  66. ! if test -f lex.yy.c; then
  67. !   LEX_OUTPUT_ROOT=lex.yy
  68. ! elif test -f lexyy.c; then
  69. !   LEX_OUTPUT_ROOT=lexyy
  70. ! else
  71. !   { echo "configure: error: cannot find output from $LEX, giving up" 1>&2; exi
  72. t 1; }
  73.   fi
  74. ------------------------------------------------------------
  75. In this part of the patch, if the first "if" evaluates "true" then
  76. LEX_OUTPUT_ROOT is never defined.
  77.  
  78. A work-around for this bug is to run ./configure from subdirectory
  79. web2c after ./configure has finished running from the directory above,
  80. and without defining the cache to it.
  81.  
  82. The fix should be to put LEX_OUTPUT_ROOT in the catch and read it in
  83. to the recursive configures.
  84.  
  85.  
  86.